package com.woniu.fly.fairmall.wx.web;

import com.woniu.fly.fairmall.core.util.ResponseUtil;
import com.woniu.fly.fairmall.db.dao.QuestListDao;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 测试服务
 */
@RestController
@RequestMapping("/wx/index")
public class WxIndexController {
    private final Log logger = LogFactory.getLog(WxIndexController.class);

    @Resource
    private QuestListDao questListDao;
    /**
     * 测试数据
     *
     * @return 测试数据
     */
    @RequestMapping("/index")
    public Object index() {
        return ResponseUtil.ok("hello world, this is db service");
    }


    /**
     * 测试数据
     *
     * @return 测试数据
     */
    @RequestMapping("/index1")
    public Object index1() {
        Object o = questListDao.questTest();
        return o;
    }


}
